package m.jclecai.com.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

/**
 * Created by ZD on 2017/4/19.
 */

public class ItemBean implements IPickerViewData {
    private int index;
    private String name;
    private String pinyin;
    private int redCount;//红球个数
    private int blueCount;//蓝球个数
    private int redMaxNum;//红球最大的数字
    private int blueMaxNum;//蓝球最大的数字
    private boolean type;//是否前面加0
    private boolean canZero;//能否为0

    public ItemBean(String name, String pinyin) {
        this.name = name;
        this.pinyin = pinyin;
    }

    public ItemBean(int index, String name, String pinyin) {
        this.index = index;
        this.name = name;
        this.pinyin = pinyin;
    }

    public ItemBean(int index, String name, String pinyin, int redCount, int blueCount, int redMaxNum, int blueMaxNum, boolean type, boolean canZero) {
        this.index = index;
        this.name = name;
        this.pinyin = pinyin;
        this.redCount = redCount;
        this.blueCount = blueCount;
        this.redMaxNum = redMaxNum;
        this.blueMaxNum = blueMaxNum;
        this.type = type;
        this.canZero = canZero;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }

    public int getRedCount() {
        return redCount;
    }

    public void setRedCount(int redCount) {
        this.redCount = redCount;
    }

    public int getBlueCount() {
        return blueCount;
    }

    public void setBlueCount(int blueCount) {
        this.blueCount = blueCount;
    }

    public int getRedMaxNum() {
        return redMaxNum;
    }

    public void setRedMaxNum(int redMaxNum) {
        this.redMaxNum = redMaxNum;
    }

    public int getBlueMaxNum() {
        return blueMaxNum;
    }

    public void setBlueMaxNum(int blueMaxNum) {
        this.blueMaxNum = blueMaxNum;
    }

    public boolean isType() {
        return type;
    }

    public void setType(boolean type) {
        this.type = type;
    }

    public boolean isCanZero() {
        return canZero;
    }

    public void setCanZero(boolean canZero) {
        this.canZero = canZero;
    }
}
